from fastapi.responses import ORJSONResponse
from fastapi.routing import APIRouter
from logs.settings import logger
from extensions.mongoApi import *
from fastapi_users import FastAPIUsers, models


client = MongoConn()
router = APIRouter(
    prefix="/index",
    tags=["index"],
    default_response_class=ORJSONResponse
)


@router.get("/")
async def ApiIndex_():
    logger.info('Welecome To PENR ToolBoxs.')
    return {"data": "Welecome To PENR ToolBoxs."}
